// JavaScript Document

function  page_load()
{
	var pid=UrlParm.parm('parent_id');
	 var code="new(com.attilax.agent.AgentRechargeService).getRchgTotal_groupby_SubAgent_where_ParentAgentId($pid$)";
 code=code.replace("$pid$",pid);
 
	   var jsb=new AtiJsBridge();
	
		jsb.exe("$code="+encodeURIComponent(code),function(data){
			console.log(data);
			 try{
			  processJavaEx_V2q315(data);
		   }catch(e)
		   {
			 
				  showErr(e);
				  return;
		  
		   }
		  
		  	  var json=str2json(data);
		  
			  var list=new TableV3("table1");
		 
			   list.bindData(json);
		  
		}); 
		
		ini_mem_total();
	
}

function calcCommission(money)
{
	//parseInt
	return ( money*0.08);
	
}